package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备入库对象 equipment
 * 
 * @author gzhuangwei
 * @date 2022-09-23
 */
public class Equipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据ID */
    private Long id;

    /** 设备ID */
    @Excel(name = "设备ID")
    private String equipmentid;

    /** 关联患者表userid */
    @Excel(name = "关联患者表userid")
    private String userid;

    /** 设备出厂日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "设备出厂日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date factorydate;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inboundtime;

    /** 入库人员 */
    @Excel(name = "入库人员")
    private String inbounduser;

    /** 设备代号 */
    @Excel(name = "设备代号")
    private String equipmentcode;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEquipmentid(String equipmentid) 
    {
        this.equipmentid = equipmentid;
    }

    public String getEquipmentid() 
    {
        return equipmentid;
    }
    public void setUserid(String userid) 
    {
        this.userid = userid;
    }

    public String getUserid() 
    {
        return userid;
    }
    public void setFactorydate(Date factorydate) 
    {
        this.factorydate = factorydate;
    }

    public Date getFactorydate() 
    {
        return factorydate;
    }
    public void setInboundtime(Date inboundtime) 
    {
        this.inboundtime = inboundtime;
    }

    public Date getInboundtime() 
    {
        return inboundtime;
    }
    public void setInbounduser(String inbounduser) 
    {
        this.inbounduser = inbounduser;
    }

    public String getInbounduser() 
    {
        return inbounduser;
    }
    public void setEquipmentcode(String equipmentcode) 
    {
        this.equipmentcode = equipmentcode;
    }

    public String getEquipmentcode() 
    {
        return equipmentcode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("equipmentid", getEquipmentid())
            .append("userid", getUserid())
            .append("factorydate", getFactorydate())
            .append("inboundtime", getInboundtime())
            .append("inbounduser", getInbounduser())
            .append("equipmentcode", getEquipmentcode())
            .toString();
    }
}
